package com.itheima.homework2;

import java.io.File;

public class Demo2_API_Print {
    public static void main(String[] args) {
        File dir = new File("D:\\develop\\daima\\day02\\lianxi");
        File[] files = dir.listFiles();
        for (File file : files) {
            if(file.isFile()&&file.getName().endsWith(".java")){
                System.out.println(file.getName());
            }
        }
    }
}
